﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Data.SqlClient;
using QLTV.DAL;
using QLTV.Public;

namespace QLTV.BLL
{
    public class TacGiaBLL
    {
        TacGiaDAL tgDAL;
        public TacGiaBLL()
        {
            tgDAL = new TacGiaDAL();
        }
        public DataTable LoadDuLieu()
        {
            try
            {
                return tgDAL.LoadDuLieu();
            }
            catch (SqlException ex)
            {
                throw ex;
            }
        }
        public DataTable LoadMaTacGia(TacGiaDTO tgDTO)
        {
            try
            {
                return tgDAL.LoadMaTacGia(tgDTO);
            }
            catch (SqlException ex)
            {
                throw ex;
            }
        }
        public int nhapTacGia(TacGiaDTO tgDTO)
        {
            return tgDAL.nhapTacGia(tgDTO);
        }
        public int TacGia_Xoa(TacGiaDTO tgDTO)
        {
            return tgDAL.TacGia_Xoa(tgDTO);
        }
        public DataTable TimTheoTen(TacGiaDTO tgDTO)
        {
            try
            {
                return tgDAL.TimTheoTen(tgDTO);
            }
            catch (SqlException ex)
            {
                throw ex;
            }
        }
    }
}
